/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.logical.allhit.setting;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Sanjeet Jha
 */
public class Account implements Serializable {

    private String name, usertype, password, trPassword;
    private long uid, leftchild, rightchild,totalchild;
    private Date lastUpdateDate;
    private float balance;

    public Account() {
        name = "";
        usertype = "";
        password = "";
        trPassword = "";
        uid = 0;
        lastUpdateDate = new Date();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getTrPassword() {
        return trPassword;
    }

    public void setTrPassword(String trPassword) {
        this.trPassword = trPassword;
    }

    public long getLeftchild() {
        return leftchild;
    }

    public void setLeftchild(long leftchild) {
        this.leftchild = leftchild;
        lastUpdateDate = new Date();
    }

    public long getRightchild() {
        return rightchild;
    }

    public void setRightchild(long rightchild) {
        this.rightchild = rightchild;
        lastUpdateDate = new Date();
    }

    public long getTotalchild() {
        return totalchild;
    }

    public void setTotalchild(long totalchild) {
        this.totalchild = totalchild;
        lastUpdateDate = new Date();
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
        lastUpdateDate = new Date();
    }
    

    @Override
    public String toString() {
        return "Account[\"" + name + "\",\"" + usertype + "\",\"" + password + 
                "\",\"" + trPassword + "\",\"" + uid + "\",\"" + totalchild + 
                "\",\"" + leftchild + "\",\"" + rightchild + "\"]";
    }
}
